package com.forest.oss.impl;

import lombok.Data;
import com.forest.oss.constants.OssEnum;
import org.springframework.validation.annotation.Validated;

import javax.validation.constraints.NotBlank;

@Validated
@Data
public class OssProperties {

    /** com.forest.oss 类型 */
    protected OssEnum type ;

    /** com.forest.oss type enable */
    protected String enable;

    /** com.forest.oss app key */
    @NotBlank(message = "app key 不能为空!")
    protected String appKeyId;

    /** com.forest.oss app secret */
    @NotBlank(message = "app secret 不能为空!")
    protected String appSecret;

    /** com.forest.oss end point */
    protected String endPoint;

    /** com.forest.oss bucket name */
    protected String bucket;

    /** com.forest.oss project name */
    protected String project;

    /** com.forest.oss bucket domain */
    protected String bucketDomain;

}
